#coding=utf-8
import os

from django.http import HttpResponse
from django.shortcuts import render_to_response

from report_app.models import OsimReport

def report(request):
    report_data = OsimReport.objects.all()
    pic_name = os.path.split(report_data.screenshot)[1]
    
    
    return render_to_response('report.html', {'report_data': report_data, 
                                                 'pic_name': pic_name})
    